/*
 * An XML document type.
 * Localname: EAttribute
 * Namespace: http://www.eclipse.org/emf/2002/Ecore
 * Java type: org.eclipse.emf.x2002.ecore.EAttributeDocument
 *
 * Automatically generated - do not modify.
 */
package org.eclipse.emf.x2002.ecore.impl;
/**
 * A document containing one EAttribute(@http://www.eclipse.org/emf/2002/Ecore) element.
 *
 * This is a complex type.
 */
public class EAttributeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.eclipse.emf.x2002.ecore.EAttributeDocument
{
    private static final long serialVersionUID = 1L;
    
    public EAttributeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EATTRIBUTE$0 = 
        new javax.xml.namespace.QName("http://www.eclipse.org/emf/2002/Ecore", "EAttribute");
    
    
    /**
     * Gets the "EAttribute" element
     */
    public org.eclipse.emf.x2002.ecore.EAttribute getEAttribute()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EAttribute target = null;
            target = (org.eclipse.emf.x2002.ecore.EAttribute)get_store().find_element_user(EATTRIBUTE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "EAttribute" element
     */
    public void setEAttribute(org.eclipse.emf.x2002.ecore.EAttribute eAttribute)
    {
        generatedSetterHelperImpl(eAttribute, EATTRIBUTE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "EAttribute" element
     */
    public org.eclipse.emf.x2002.ecore.EAttribute addNewEAttribute()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EAttribute target = null;
            target = (org.eclipse.emf.x2002.ecore.EAttribute)get_store().add_element_user(EATTRIBUTE$0);
            return target;
        }
    }
}
